New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
a=(b=-1,b-2); cout<<a;
c++
3 Votes
2 Answers
20th Sep 2017, 3:01 PM
Jaya Varshini
int i=2,j=2; int a=(i+1?--i:j++); cout<<a;
@sololearn
1 Vote
2 Answers
28th Oct 2017, 8:08 AM
Omkar P
Int a; a=5>=5; cout<<a; what is the output?
c++
3 Votes
3 Answers
24th Apr 2018, 12:33 PM
Elham Keshavarz
1. cout<<34+56; 2. int a; a=34+56; cout<<a;
c
0 Votes
4 Answers
13th Jul 2018, 7:56 AM
Megha Kannaujia
int a=2; int b=3; while(b--)++a; cout<<a; Why does this code print 5?
c++
0 Votes
4 Answers
26th Jul 2016, 2:12 PM
jigoku_tenshi
#include <iostream> #include<string> using namespace std; int main() { string a; cin>>a; cout<<a; return 0; }
c++
strings
4 Votes
8 Answers
9th Mar 2017, 4:09 PM
SIGMA
why this output comes 4 and why not -4; #include<iostream> using namespace std; int main() { int a=4; int *p=&a; p-= 8; cout<<a; }
c++
0 Votes
3 Answers
31st Aug 2016, 7:16 PM
Lekhraj Singh
If
||
a=7,b=1;
b==5)
cout<<a;
cout<<a*b;
if(a=8
int
1 Vote
8 Answers
20th Mar 2019, 5:26 PM
Максим Антонюк
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
Isogram Detector
2 Votes
Need suggestions what improvements can I do in it
3 Votes
[SOLVED] Why 'null >= 0' is TRUE?
3 Votes
pls how do I write comments in code
0 Votes
What is the generally preferred way of assigning values in Python?
1 Votes
R programming
2 Votes
How to add shadow on text
0 Votes
Help me with phyton
2 Votes
Hello
0 Votes
Please help with Sololearn quiz challenge
0 Votes